Skip to content

Conversation

@cristipufu
Copy link
Member

@cristipufu cristipufu commented Dec 20, 2025

Description

This PR adds runtime-scoped storage capabilities to the LangGraph integration by introducing a runtime_id parameter to storage operations. The changes enable isolation of resume triggers and key-value data per runtime instance.

  • Updated uipath dependency to version 2.3.0 and added uipath-runtime 0.3.0 dependency
  • Modified SqliteResumableStorage to scope all storage operations by runtime_id, adding the parameter to save_trigger and get_latest_trigger methods
  • Added new save_value and get_value methods for general-purpose key-value storage with runtime and namespace scoping

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath-langchain==0.2.0.dev1003721628",

  # Any version from PR
  "uipath-langchain>=0.2.0.dev1003720000,<0.2.0.dev1003730000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-langchain = { index = "testpypi" }

@cristipufu cristipufu requested a review from Copilot December 20, 2025 17:58
@cristipufu cristipufu self-assigned this Dec 20, 2025
@cristipufu cristipufu force-pushed the fix/update_storage branch 2 times, most recently from 9fe8632 to 1dfd4ec Compare December 20, 2025 18:01

This comment was marked as outdated.

await cur.execute(
f"""
CREATE TABLE IF NOT EXISTS {self.kv_table_name} (
runtime_id TEXT NOT NULL,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious why we are adding runtime ID? at a glance these DBs look to be per job (since I didn't see any kind of primary key before) - is this just good hygiene?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants